<!DOCTYPE html>
<html lang="en">
<head>
    <#import "../common/common.macro.ftl" as netCommon>
	<@netCommon.commonStyle />
</head>
<body>
<div class="wrapper">

            <div class="box-body">
                <form id="updateResForm">
                    <!-- text input -->
                    <input id="id" type="hidden" class="form-control" name="id" value="${res.id}">
                    <input id="appId" type="hidden" class="form-control" name="appId" value="${res.appId}">
                    <div class="form-group">
                        <label>资源名</label>
                        <input id="resName" type="text" class="form-control" name="resName" value="${res.resName!''}">
                    </div>
                    <div class="form-group">
                        <label>资源路径</label>
                        <input id="resPath" type="text" class="form-control" name="resPath" value="${res.resPath!''}">
                    </div>
                    <div class="form-group">
                        <label>资源描述</label>
                        <input type="text" class="form-control" name="resDesc" value="${res.resDesc!''}">
                    </div>
                    <div class="form-group">
                        <label>是否登录</label>&nbsp;&nbsp;&nbsp;&nbsp;
                        <label>
                            <input type="radio" name="login" value="true" <#if res.login=='true'>checked="checked"</#if>> 是
                            &nbsp;&nbsp;
                            <input type="radio" name="login" value="false" <#if res.login=='false'>checked="checked"</#if>> 否
                        </label>
                    </div>
                    <button type="button" class="btn btn-block btn-primary" onclick="updateRes()">提交</button>
                </form>
            </div>
            <!-- /.box-body -->
        <!-- /.box -->
</div>

<@netCommon.commonScript />
<script src="${request.contextPath}/static/js/app.js" ></script>
</body>
</html>